-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package the jar analyzers #5290
Conversation
@@ -1550,9 +1550,13 @@ | |||
"Microsoft.VisualStudio.Interop": "17.0.31902.203" | |||
} | |||
}, | |||
"copydependencies": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it lower case here?
|
||
<Target Name="CopyJars"> | ||
<ItemGroup> | ||
<SourceJars Include="$(JarDownloadDir)\sonar-cfamily-plugin-$(EmbeddedSonarCFamilyAnalyzerVersion).jar" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we somehow centralize the list of dependencies between this and DownloadDependencies task? Currently, if we ever add another analyzer, we would need to modify these 2 targets + EmbeddedSonarAnalyzer.props file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add another ticket for this and we can tackle it if we have time in this sprint or we can handle it in a hardening sprint.
@@ -286,7 +286,7 @@ | |||
|
|||
<ItemGroup> | |||
<Content Include="DownloadedJars\*.jar"> | |||
<CopyToOutputDirectory>Never</CopyToOutputDirectory> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did it not work without this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or rather with this
This reverts commit c164af4.
Quality Gate passedIssues Measures |
<ItemGroup Label="Sloop Dependencies"> | ||
<Content Include="$(MSBuildThisFileDirectory)$(JarsFolderName)\*.jar"> | ||
<IncludeInVSIX>True</IncludeInVSIX> | ||
<VSIXSubPath>$(JarsFolderName)</VSIXSubPath> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this somehow related?
[ProvideBindingPath(SubPath = "secrets")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see how these can be related. The one you referred is about loading assemblies, we are not interested in that here.
@@ -1533,6 +1533,9 @@ | |||
"Microsoft.VisualStudio.Interop": "17.0.31902.203" | |||
} | |||
}, | |||
"copydependencies": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it lowercase?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no idea it's auto generated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some other stuff is also lowercase (e.g. "sonarqube.client"). Since it doesn't affect anything other than cosmetics on an auto-generated file I don't consider it as a problem.
|
||
<Target Name="CopyJars"> | ||
<ItemGroup> | ||
<SourceJars Include="$(JarDownloadDir)\sonar-cfamily-plugin-$(EmbeddedSonarCFamilyAnalyzerVersion).jar" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this fail if it can't find any of those files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and I believe it's desired behaviour.
Fixes #5283